package ui.faces
{
	import flash.display.Sprite;
	
	import global.Managers;
	
	import lang.Language;
	import lang.LanguageManager;

	public class AbstractFace extends Sprite
	{
		protected var _bg						: Sprite;
		
		protected var _languageManager			: LanguageManager = Managers.languageManager;
		
		protected var _currentLanguage			: int = Language.CN;
		
		public function get currentLanguage():int {
			return _currentLanguage;
		}
		
		public function AbstractFace()
		{
			super();
		}
		public function init():void {
			createBG();
			createView();
			initListener();
		}
		protected function createBG():void {
			_bg = new Sprite();
			addChild(_bg);
			// 留给子类完善
		}
		protected function createView():void {
			// 留给子类完善
		}
		protected function initListener():void {
			// 留给子类完善
		}
		
		public function switchLanguage(toLanguage:int):void {
			// 该方法接下来的工作是负责更新Face内所有语言文字，留给子类完善
		}
		public function reset():void {
			// 留给子类完善
		}
	}
}